import { service } from '../service/request'

//登录
export async function Login(data: any) {
  return await service({
    url: 'API/Login/Login',
    method: 'post',
    data
  })
}
//登录-下拉框
export async function GetValue(data: any) {
  return await service({
    url: 'API/Login/Query',
    method: 'post',
    data
  })
}

//查询
export async function Query(data: any) {
  return await service({
    url: 'API/Main/Query',
    method: 'post',
    data
  })
}

//操作
export async function Operate(data: any) {
  return await service({
    url: 'API/Main/Operate',
    method: 'post',
    data
  })
}

//签合流程走ERP
//审核(Audit) / 反审核（UnAudit） / 撤销(CancelAssign) / 作废(Cancel) / 反作废(UnCancel)
export async function WorkFlowOper(data: any) {
  return await service({
    url: 'API/Main/WorkFlowOper',
    method: 'post',
    data
  })
}

//送检下推
export async function Push(data: any) {
  return await service({
    url: 'API/Main/Push',
    method: 'post',
    data
  })
}

//收料下推之后详情的保存
export async function Save(data: any) {
  return await service({
    url: 'API/Main/Save',
    method: 'post',
    data
  })
}

//提交
export async function Submit(data: any) {
  return await service({
    url: 'API/Main/Submit',
    method: 'post',
    data
  })
}

